replaceAll() method
This method will allow you to replace all the occurrences of the specified string with the provided matching regex and the replacement string or substring.
Method implementation-
Syntax-
Example-
Output-
Example-
Output-